<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>文章内容列表</title>
    <link href="/zhenze/Public/admin/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/zhenze/Public/admin/js/jquery.js"></script>

    <link href="/zhenze/Public/admin/css/select.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="/zhenze/Public/admin/js/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="/zhenze/Public/admin/js/select-ui.min.js"></script>


    <script type="text/javascript">
        $(document).ready(function (e) {
            $("#classtype").uedSelect({
                width: 150
            });
        });
    </script>
</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="">首页</a></li>
        <li><a href="">文章内容列表</a></li>
    </ul>
</div>

<div class="formbody">
    <ul class="toolbar">
        <li onclick="location.href = '<?php echo U('Eventinfo/insertEventinfo');?>'"><span><img src="/zhenze/Public/admin/images/t01.png"/></span>添加文章
        </li>
    </ul>
    <form name="seachform" id="seachform" action="'<?php echo U('Eventinfo/addSubmit');?>'" method="post">
        <ul class="seachform">
            <li><label>综合查询</label><input name="info[keyword]" id="keyword" value="" type="text" class="scinput"/></li>
            <li><label>文章类型</label>
                <div class="vocation">
                    <select id="classtype" name="info[classtype]">
                        <option value="">请选择类型</option>
                        <option value="1">单页文章</option>
                        <option value="2">问答文章</option>
                        <option value="3">新闻文章</option>
                    </select>
                </div>
            </li>
            <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
        </ul>
    </form>

    <table class="tablelist">
        <thead>
        <tr>
            <th><input name="" type="checkbox" value=""/></th>
            <th>编号</th>
            <th>活动标题</th>
            <th>活动图片</th>
            <th>活动详情</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>参与人数</th>
            <th>所属商家</th>
            <th>编辑</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($selEventinfo)): foreach($selEventinfo as $k=>$v): ?><tr>
            <td><input name="" type="checkbox" value=""/></td>
            <td><?php echo ($v["id"]); ?></td>
            <td><?php echo ($v["event_title"]); ?></td>
            <td><?php echo ($v["event_image"]); ?></td>
            <td><?php echo ($v["event_content"]); ?></td>
            <td><?php echo ($v["event_starttime"]); ?></td>
            <td><?php echo ($v["event_endtime"]); ?></td>
            <td><?php echo ($v["event_num"]); ?></td>
            <td><?php echo ($v["event_admin"]); ?></td>
            <td>
            <a href="<?php echo U('Eventinfo/updateEventinfo',array('id'=>$v['id']));?>" class="tablelink">编辑</a>
            <a href="<?php echo U('Eventinfo/deleteEventinfo',array('id'=>$v['id']));?>" class="tablelink">删除</a>
            </td>
        </tr><?php endforeach; endif; ?>
        </tbody>
    </table>

    <div class="pagin">
        <div class="message">共&nbsp;<i class="blue">2</i>&nbsp;条记录，每页&nbsp;<i class="blue">20</i>&nbsp;条，当前显示第&nbsp;<i
                class="blue">1</i>&nbsp;页
        </div>
        <ul class="paginList"></ul>
    </div>
</div>
<script type="text/javascript">

</script>
</body>

</html>